package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_erp_log;

import cn.com.api.mapper.ApiT_erp_logMapper;

import cn.com.api.service.ApiT_erp_logService;

/**
 * 
 **/
@Service
public class T_erp_logServiceImplBase {
	@Autowired
	private ApiT_erp_logMapper apiT_erp_logMapper;
    
    // 根据id获取
	public ApiT_erp_log findT_erp_logById(Integer id){
		ApiT_erp_log t_erp_log = apiT_erp_logMapper.findT_erp_logById( id );
		return t_erp_log;
	}
    
    //查看数据集
	public List<ApiT_erp_log> findT_erp_logs(){
        List<ApiT_erp_log> t_erp_logs = apiT_erp_logMapper.findT_erp_logs();
		return t_erp_logs;
    }
    
	// 添加
	public int insertT_erp_log(ApiT_erp_log t_erp_log){
		int ret_I= apiT_erp_logMapper.insertT_erp_log(t_erp_log);
		return ret_I;
	}

	// 修改
	public int updateT_erp_log(ApiT_erp_log t_erp_log){
		int ret_I= apiT_erp_logMapper.updateT_erp_log(t_erp_log);
		return ret_I;
	}
	
    // 删除
	public int deleteT_erp_log(Integer id){
		int ret_I= apiT_erp_logMapper.deleteT_erp_log( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    //获取根据goods_id	
    public List<ApiT_erp_log> findT_erp_logsByGoods_id(String goods_id){
        List<ApiT_erp_log> t_erp_logs = apiT_erp_logMapper.findT_erp_logsByGoods_id(goods_id);
		return t_erp_logs;
    }
    		
    //获取根据products_id	
    public List<ApiT_erp_log> findT_erp_logsByProducts_id(String products_id){
        List<ApiT_erp_log> t_erp_logs = apiT_erp_logMapper.findT_erp_logsByProducts_id(products_id);
		return t_erp_logs;
    }
    		
    //获取根据order_id	
    public List<ApiT_erp_log> findT_erp_logsByOrder_id(String order_id){
        List<ApiT_erp_log> t_erp_logs = apiT_erp_logMapper.findT_erp_logsByOrder_id(order_id);
		return t_erp_logs;
    }
    		
    
    
}


